import request from "../utils/request";


export function getOrderList(id) {
    return request({
        url: '/api/order/findOwnerOrderByAdminId/' + id,
        method: 'GET'
    })
}


export function verificateOrderList(id) {
    return request({
        url: '/api/verify/toBeVerifyOrders/' + id,
        method: 'GET'
    })
}


export function orderDetail(id) {
    return request({
        url: '/api/order/orderDetail/' + id,
        method: 'GET'
    })
}

// 统计
export function findOwnerOrderStastic(id) {
    return request({
        url: '/api/order/findOwnerOrderStastic/' + id,
        method: 'GET'
    })
}

// 明细
export function findOwnerOrderStasticList(data) {
    return request({
        url: '/api/order/findOwnerOrderStasticList',
        method: 'POST',
        data
    })
}

// 我的订单
export function myOrderList(data) {
    return request({
        url: '/api/order/myOrderList',
        method: 'POST' ,
        data
    })
}

// 我的订单
export function verifyOrder(data) {
    return request({
        url: '/api/verify/verifyOrder',
        method: 'POST' ,
        data
    })
}


// 核销结果
export function verifyDetail(id) {
    return request({
        url: `/api/verify/verifyDetail/${id}`,
        method: 'GET' ,
    })
}

export function adminVerifyList(id) {
    return request({
        url: '/api/verify/adminVerifyList/' + id,
        method: 'GET'
    })
}

export function adminVerifyListStatus(data) {
    return request({
        url: '/api/verify/adminVerifyListStatus',
        method: 'POST',
        data
    })
}

export function adminVerifyDetail(id) {
    return request({
        url: '/api/verify/verifyDetail/' + id,
        method: 'GET'
    })
}
